@extends('admin.layout.form')
{{--如果需要下拉选择组件,请开启下面这一行--}}
{{--@include("widget.asset.select2")--}}


@section('content')
<form class="form-horizontal m" id="form-edit">
    <input type="hidden" name="id" value="{{$info['id']}}">
    <div class="form-group">
        <label class="col-sm-3 control-label is-required" >姓名：</label>
        <div class="col-sm-8">
            <input type="text" name="name1" value="{{$info['name']}}" class="form-control"  autocomplete="off" readonly/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">手机号：</label>
        <div class="col-sm-8">
            <input type="text" name="mobile1" value="{{$info['mobile']}}" class="form-control"  autocomplete="off" readonly/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">报名码：</label>
        <div class="col-sm-8">
            <input type="text" name="reg_code1" value="{{$info['reg_code']}}" class="form-control"  autocomplete="off" readonly/>
        </div>
    </div>

    @if($is_admin)
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">UA：</label>
        <div class="col-sm-8">
            <textarea name="ua1" value="" class="form-control" style="height: 100px;"  readonly autocomplete="off"/>{{$info['ua']}}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">Token：</label>
        <div class="col-sm-8">
            <textarea name="token1" value="" style="height: 100px;" class="form-control"  readonly autocomplete="off"/>{{$info['token']}}</textarea>
        </div>
    </div>
    @endif
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">备注：</label>
        <div class="col-sm-8">

            <textarea name="note" value="" class="form-control" required autocomplete="off"/>{{$info['note']}}</textarea>
        </div>
    </div>
</form>
@stop

@section('script')
    <script>
        $("#form-edit").validate();

        {{--$("#XX").val(["{{$info['xx']}}"]).trigger("change");--}}

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(oesUrl, $('#form-edit').serialize());
            }
        }
    </script>
@stop
